#include #include #include "misc/CMSTypes.h" #include "misc/CmConvert.h" #include "LCD/LCD_LMG6381.h" #include "GPS/GPS.h" #include "GPS/GPSFormat.h" #include "MMC/MMC.h" #include "IO/IO.h" #define DB_LED(state) { DDRB = 0xff; PORTB = ~(1< #include #include int main( void ) { LCD_PortInit(); MMC_PortInit(); IO_PortInit(); LCD_Init(); LCDC_Init(); IO_Init(); LCDC_Print( "IO - Test\n============\nKeys pressed: " ); char str[] = " "; while(1) { if ( IO_Key_IsMsgAvailable() ) { BYTE byNo = IO_Key_GetMsg(); str[0] = '0' + byNo; IO_LED_Toggle( byNo ); LCDC_Print( str ); } } return 0; }